package cn.smile.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 网站基础信息配置类
 */
@Data
@Component
@PropertySource(value = "classpath:site.properties")
public class SiteConfig {

    @Value("${web.site.name}")
    private String siteName;
    @Value("${web.site.url}")
    private String siteUrl;
}
